<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>

<!-- UserServlet / findByPage -->
<body>

	<table class="table table-striped table-bordered table-hover table-condensed">
		<tr>
			<th>ID</th>
			<th>名字</th>
			<th>年龄</th>
			<th>密码</th>
			<th>邮箱</th>
			<th>部门编号</th>
		</tr>
		
		<c:forEach var="user" items="${ list }">
			<tr>
				<th>${ user.id}</th>
				<th>${ user.name}</th>
				<th>${ user.age}</th>
				<th>${ user.password}</th>
				<th>${ user.email}</th>
				<th>${ user.departmentId}</th>
			</tr>
		</c:forEach>
		
	</table>
<!-- 
	private Integer id;
	private String name;
	private Integer age;

	private String password;
	private String email;
	private Integer departmentId; // 部门编号

 -->
</body>
</html>